package art_of_java_concurrent_programming.thread_local;

/**
 * 多线程环境下有问题, 可以通过 ThreadLocal 解决, 见{@link Performance}<br/>
 */
public class Performance2 {
    static long beginTimeMillis;

    public static final void begin() {
        beginTimeMillis = System.currentTimeMillis();
    }

    public static final long end() {
        return System.currentTimeMillis() - beginTimeMillis;
    }

}